package com.hzw.saas.web.admin.user.param;

import java.util.List;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

import com.hzw.saas.common.util.AccountValidatorUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author sonam
 * @since 2021/4/23 15:19
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel("工作人员参数")
public class StaffParam {

    @ApiModelProperty(value = "人员ID，为空则是添加参数否则更新")
    private String pid;

    @Pattern(regexp = AccountValidatorUtil.REGEX_CHINESE_NAME_OR_BLANK, message = "姓名格式不正确")
    @ApiModelProperty(value = "人员姓名")
    private String staffName;

    @ApiModelProperty(value = "人员邮箱")
    @Pattern(regexp = AccountValidatorUtil.REGEX_EMAIL_OR_BLANK, message = "邮箱格式不正确")
    private String staffEmail;

    @Pattern(regexp = AccountValidatorUtil.REGEX_MOBILE_OR_BLANK, message = "手机号码格式不正确")
    @ApiModelProperty(value = "人员手机号")
    private String staffPhoneNo;

    @Size(max = 2, message = "人员副手机号不能大于2个")
    @ApiModelProperty(value = "人员副手机号")
    private List<String> staffPhoneNoList;

    @NotBlank(message = "职位信息不能为空")
    @ApiModelProperty(value = "职位")
    private String title;

    @ApiModelProperty(value = "角色ID列表")
    private List<String> roleIds;

}
